﻿<!--{inc(header.view.html)}-->

<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                     
                                                 <li><a href="#" class="nav_icon" target="mainframe">用户组列表</a></li>                                     
                                                 <li><a href="index.php?app=role&act=add"  target="mainframe">新增用户组</a></li>


	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>新增用户</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>


                                   
                                   
                                   
                                   
                                   
  <table width="100%" height="30" cellspacing="0" cellpadding="4" border="0" align="center"  class="table_style">
<tbody><tr>
	<td width="40%" class="bold">用户组名称</td>
	<td width="80" align="center" class="bold">权限设置</td>
	<td align="center" class="bold">操作</td>
</tr>

<?php foreach((array)$roledata as $_key => $_value ) { ?>
	
<tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'" >
	<td>&nbsp;&nbsp;<input type="text" value="{$_value.role_name}" name="title"  onchange="ato_url('index.php?app=role&act=lname&id={$_value.role_id}',this);" maxlength="25"/></td>

	<td align="center">
    	                                 <select name="data[power]"  onchange="ato_url('index.php?app=role&act=power&id={$_value.role_id}',this);">
 		                                       <option  value="">请选择...</option>                                        
                                          <?php foreach((array)$role_file as $_key => $_value1 ) { ?>                                     
		                                       <option  value="{$_value1}">{$_value1}</option>                                       
		                                   <?php } ?>
	                                     </select>
    </td>
	<td align="center">
<?php if(definerole($_value.role_id)) { ?>
...
<?php } else { ?>


	<a href="?app=role&act=edit&id={$_value.role_id}" target="mainframe">修改</a>&nbsp;
		<a onClick="return confirm('确认删除该用户组？该组下的成员将会全部合并到[普通会员]系统组中。');" href="?app=role&act=del&id={$_value.role_id}">删除</a>
		<?php } ?>
	</td>
</tr>	

<?php } ?>

</tbody></table>                                 
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   
                                   

                 </div>

</div>



<!--{inc(footer.view.html)}-->